#pragma once
#include "IBaseComponent.h"
#include <iostream>

class Component2 : public IBaseComponent {
public:
	void DoC() {
		std::cout << "Component 2 does C.\n";
		this->mediator_->Notify(this, "C");
	}
	void DoD() {
		std::cout << "Component 2 does D.\n";
		this->mediator_->Notify(this, "D");
	}
};